package com.briup.service;

import com.briup.bean.User;
public interface IUserService {
    /*
    登陆
     */
    User login(String name, String password)throws Exception;
    /*
    注册
     */
    void register(User user)throws Exception ;

    //通过用户loginName查找用户
    User findByLoginName(String  loginName);

    User findByEmail(String email);
    User findByPhone(String phone);
}